<script setup>
import { ref } from 'vue'
import API from '../plugins/axios'

const valley = ref({
    id: '2fe',
    score: 1,
    record: []
})

API({
    url: '/get/data',
    method: 'get'
}).then((res) => {
    console.log("success", res)
});


</script>

<template>
    <el-row>
        <el-col :span="2"></el-col>
        <el-col :span="4">
            <el-card :body-style="{ padding: '0px' }">
                <img src="../assets/Valley.jpg" class="image">
                <div style="padding: 14px;">
                    <span>积分数: {{ valley.score }}</span>
                    <div class="bottom clearfix">
                        <el-button type="text" class="button" @click="remove(valley.id)">减少</el-button>
                        <el-button type="text" class="button" @click="add(valley.id)">增加</el-button>
                    </div>
                </div>
            </el-card>
        </el-col>
    </el-row>
</template>

<style>
.time {
    font-size: 13px;
    color: #999;
}

.bottom {
    margin-top: 13px;
    line-height: 12px;
}

.button {
    padding: 0;
    float: right;
    margin-left: 20px;
}

.image {
    width: 100%;
    display: block;
    height: 200px;
}

.clearfix:before,
.clearfix:after {
    display: table;
    content: "";
}

.clearfix:after {
    clear: both
}
</style>
  